function checkDate(value, colname) {
    if (Date.parseExact(value, "dd-mm-yy") != null)
        return [true, ''];
    else
        return [false, 'Date is not valid'];
}